<cfparam name="Scholarship_ID" type="integer" />
<cfparam name="returnView" type="string" default="scholarships" />

<cfscript>
	scholarshipGateway = new assets.calgrants.com.gateway.ScholarshipGateway();
	scholarship = scholarshipGateway.get(Scholarship_ID = Scholarship_ID);
</cfscript>

<cfif scholarship.getScholarship_ID() gt 0>

	<cfscript>
		base = new assets.calgrants.com.Base();
		qScholarship = scholarshipGateway.query(Scholarship_ID = scholarship.getScholarship_ID());
		if (IsDate(scholarship.getClaim_Date())) {
			source = "scholarship";
		//} else if (IsNumeric(qScholarship.GDS_ID) and qScholarship.GDS_ID gt 0) {
			//source = "GDS";
		} else if (IsNumeric(scholarship.getStudent_ID()) and scholarship.getStudent_ID() gt 0) {
			source = "student";
		} else {
			source = "other";
		};
		// in order to determine the payment schedule, the scholar must have claimed, specified an institution, and the instituiton must have a value for term type
		if (IsDate(scholarship.getClaim_Date()) and scholarship.getInstitution1_ID() gt 0 and Len(Trim(qScholarship.Term_Type)) gt 0) {
			paymentScheduleGateway = new assets.calgrants.com.gateway.PaymentScheduleGateway();
			qPaymentSchedules = paymentScheduleGateway.query(Cohort = scholarship.getCohort(), Scholarship_Type = scholarship.getScholarship_Type(), Term_Type = qScholarship.Term_Type);
		} else {
			qPaymentSchedules = "";
		};
		if (IsUserInRole("Super User") or GetAuthUser() eq 620) {
			paymentGateway = new assets.calgrants.com.gateway.PaymentGateway();
			qPayments = paymentGateway.query(Scholarship_ID = scholarship.getScholarship_ID());
		};
		institutionGateway = new assets.calgrants.com.gateway.InstitutionGateway();
		//qInstitutions = institutionGateway.query();
		institution1 = institutionGateway.get(Institution_ID = IIf(IsNumeric(scholarship.getInstitution1_ID()), DE(scholarship.getInstitution1_ID()), 0));
		institution2 = institutionGateway.get(Institution_ID = IIf(IsNumeric(scholarship.getInstitution2_ID()), DE(scholarship.getInstitution2_ID()), 0));
		institution3 = institutionGateway.get(Institution_ID = IIf(IsNumeric(scholarship.getInstitution3_ID()), DE(scholarship.getInstitution3_ID()), 0));
	</cfscript>

	<div class="container-fluid">
		<cfoutput>
			<div class="row-fluid">
				<div class="span12">
					<ul class="nav nav-tabs">
					  <li class="active"><a href="##profile" data-toggle="tab">Profile</a></li>
					  <li><a href="##institution" data-toggle="tab">College/University</a></li>
					  <!--- <li><a href="##banking" data-toggle="tab">Banking</a></li>
					  <li><a href="##payments" data-toggle="tab">Payments</a></li>
					  <li><a href="##gds" data-toggle="tab">GDS Data</a></li>
					  <li><a href="##student" data-toggle="tab">Exit Survey Data</a></li> --->
					</ul>
					<div class="tab-content">
						<div class="tab-pane active" id="profile">
							<h4>Profile</h4>
							<div class="row-fluid">
								<div class="span4">
									<div class="text-control clearfix">
										<label>Contact Info</label>
										#scholarship.getFirst_Name()# #scholarship.getLast_Name()#<br />
										#scholarship.getAddress()#<br />
										#scholarship.getCity()#, CA #scholarship.getZip_Code()#<br />
										#scholarship.getPhone1()#<br />
										<cfif Len(Trim(scholarship.getPhone2())) gt 0>#scholarship.getPhone2()#<br /></cfif>
										<a href="mailto:#LCase(scholarship.getEmail())#">#LCase(scholarship.getEmail())#</a>
									</div>
									<div class="text-control clearfix">
										<label>Cohort</label>
										#scholarship.getCohort()# (#qScholarship.Program_Year#)
									</div>
									<div class="text-control clearfix">
										<label>Scholarship Type</label>
										#scholarship.getScholarship_Type()#
									</div>
									<div class="text-control clearfix">
										<label>Claim ID</label>
										#scholarship.getClaim_ID()#
									</div>
									<div class="text-control clearfix">
										<label>Claim Date</label>
										<cfif IsDate(scholarship.getClaim_Date())>
											#DateFormat(scholarship.getClaim_Date(), "m/d/yyyy")#
										<cfelse>
											Not claimed
										</cfif>
									</div>
								</div>
								<div class="span4">
									<div class="text-control clearfix">
										<label>High School</label>
										<cfif IsNumeric(scholarship.getHigh_School_ID()) and scholarship.getHigh_School_ID() gt 0>
											#qScholarship.Scholarship_High_School#<br />
											<cfif Len(Trim(qScholarship.Scholarship_High_School_Address1)) gt 0>
												#qScholarship.Scholarship_High_School_Address1#<br />
											</cfif>
											<cfif Len(Trim(qScholarship.Scholarship_High_School_Address2)) gt 0>
												#qScholarship.Scholarship_High_School_Address2#<br />
											</cfif>
											#qScholarship.Scholarship_High_School_City#, #qScholarship.Scholarship_High_School_State# #qScholarship.Scholarship_High_School_Zip_Code#<br />
											<cfif Len(Trim(qScholarship.Scholarship_High_School_Type)) gt 0>
												#base.FormatPhone(qScholarship.Scholarship_High_School_Type)#
											</cfif>
										<cfelseif Len(Trim(scholarship.getHigh_School())) gt 0>
											#base.TitleCase(scholarship.getHigh_School())#
										<cfelse>
											No data
										</cfif>
									</div>
									<div class="text-control clearfix">
										<label>High School Graduation Date</label>
										<cfif IsNumeric(scholarship.getGraduation_Month()) and IsNumeric(scholarship.getGraduation_Year())>
											#MonthAsString(scholarship.getGraduation_Month())# #scholarship.getGraduation_Year()#
										<cfelse>
											No data
										</cfif>
									</div>
								</div>
								<div class="span4">
									<div class="text-control clearfix">
										<label>Social Security Number</label>
										<cfif IsValid("social_security_number", base.formatSSN(scholarship.getSSN()))>
											<cfif IsUserInRole("Super User")>
												#base.formatSSN(scholarship.getSSN())#
											<cfelse>
												***-**-#Right(base.formatSSN(scholarship.getSSN()), 4)#
											</cfif>
										<cfelse>
											No data
										</cfif>
									</div>
									<div class="text-control clearfix">
										<label>Date of Birth</label>
										<cfif IsDate(scholarship.getDOB())>
											#DateFormat(scholarship.getDOB(), "m/d/yyyy")#
										<cfelse>
											No data
										</cfif>
									</div>
									<div class="text-control clearfix">
										<label>Gender</label>
										<cfif scholarship.getGender() eq "f">
											Female
										<cfelseif scholarship.getGender eq "m">
											Male
										<cfelse>
											Did not answer
										</cfif>
									</div>
									<div class="text-control clearfix">
										<label>Race/Ethnicity</label>
										<cfif Len(Trim(scholarship.getRace_Ethnicity())) gt 0>
											#scholarship.getRace_Ethnicity()#
										<cfelse>
											Did not answer
										</cfif>
									</div>
									<div class="text-control clearfix">
										<label>Volunteer</label>
										#YesNoFormat(scholarship.getVolunteer())#
									</div>
									<div class="text-control clearfix">
										<label>Authorized/Consent Given</label>
										#YesNoFormat(scholarship.getAuthorized())#
									</div>
									<cfif scholarship.getScholarship_Type() neq "ccfc" and scholarship.getCohort() eq 5>
										<div class="text-control clearfix">
											<label>Authorized By</label>
											<cfif Len(Trim(scholarship.getAuthorized_Signature())) gt 0>
												#scholarship.getAuthorized_Signature()# (#scholarship.getAuthorized_By()#)
											<cfelse>
												No data
											</cfif>
										</div>
										<div class="text-control clearfix">
											<label>Orientation Completed</label>
											#YesNoFormat(scholarship.getOrientation_Completed())#
										</div>
									</cfif>
								</div>
							</div>
						</div>
						<div class="tab-pane" id="institution">
							<h4>College/University</h4>
							<div class="row-fluid">
								<div class="span4">
									<div class="text-control clearfix">
										<label>Enrollment Date</label>
										#scholarship.getEnrollment_Date()#
									</div>
									<div class="text-control clearfix">
										<label>Degree Level</label>
										#scholarship.getDegree_Level()#
									</div>
									<div class="text-control clearfix">
										<label>Attendance Level</label>
										#scholarship.getAttendance_Level()#
									</div>
								</div>
								<div class="span4">							
									<label>Primary College/University</label>
									<div class="well well-small well-framed">
										<cfif institution1.getInstitution_ID() gt 0>
											<!--- <div class="row-fluid">
												<div class="span8"> --->
													<div class="text-control clearfix">
														<label>Name</label>
														#institution1.getInstitution()#
													</div>
													<div class="text-control clearfix">
														<label>Financial Aid Contact</label>
														<cfif Len(Trim(institution1.getFAO_First_Name())) gt 0 or Len(Trim(institution1.getFAO_Last_Name())) gt 0>
															#institution1.getFAO_First_Name()# #institution1.getFAO_Last_Name()#<br />
														</cfif>
														<cfif Len(Trim(institution1.getFAO_Address1())) gt 0>
															#institution1.getFAO_Address1()#<br />
														</cfif>
														<cfif Len(Trim(institution1.getFAO_Address2())) gt 0>
															#institution1.getFAO_Address2()#<br />
														</cfif>
														<cfif Len(Trim(institution1.getFAO_City())) gt 0>
															#institution1.getFAO_City()#, #institution1.getFAO_State()# #base.FormatZipCode(institution1.getFAO_Zip_Code())#<br />
														</cfif>
														<cfif Len(Trim(institution1.getFAO_Phone())) gt 0>
															#base.FormatPhone(institution1.getFAO_Phone())#<br />
														</cfif>
														<cfif Len(Trim(institution1.getFAO_Email())) gt 0>
															<a href="mailto:#LCase(institution1.getFAO_Email())#">#LCase(institution1.getFAO_Email())#</a><br />
														</cfif>
													</div>
												<!--- </div>
												<div class="span4"> --->
													<div class="text-control clearfix">
														<label>Status</label>
														<cfif institution1.getDeleted() eq 1>
															<span class="text-error">Deleted</span>
														<cfelseif institution1.getDisqualified() eq 1>
															<span class="text-error">Disqualified</span>
														<cfelseif institution1.getApproved() eq 0>
															<span class="text-warning">Not approved</span>
														<cfelseif institution1.getApproved() eq 1>
															Approved
														</cfif>
													</div>
													<div class="text-control clearfix">
														<label>Term Type</label>
														#institution1.getTerm_Type()#
													</div>
													<div class="text-control clearfix">
														<label>Accredited</label>
														<cfif institution1.getAccredited() eq 1>
															Yes
														<cfelseif institution1.getAccredited() eq 0>
															<span class="text-error">No</span>
														<cfelse>
															<span class="text-warning">Unknown</span>
														</cfif>
													</div>
													<div class="text-control clearfix">
														<label>Degree Granting</label>
														<cfif institution1.getDegree_Granting() eq 1>
															Yes<br />
														<cfelseif institution1.getDegree_Granting() eq 0>
															<span class="text-error">No</span><br />
														<cfelse>
															<span class="text-warning">Unknown</span><br />
														</cfif>
													</div>
												<!--- </div>
											</div> --->
										<cfelse>
											None
										</cfif>
									</div>
								</div>
								<div class="span4">
									<label>Secondary College/University</label>
									<div class="well well-small well-framed">
										<cfif institution2.getInstitution_ID() gt 0>
											<div class="row-fluid">
												<div class="span6">
													<div class="text-control clearfix">
														<label>Name</label>
														#institution2.getInstitution()#
													</div>
													<div class="text-control clearfix">
														<label>Status</label>
														<cfif institution2.getDeleted() eq 1>
															<span class="text-error">Deleted</span>
														<cfelseif institution2.getDisqualified() eq 1>
															<span class="text-error">Disqualified</span>
														<cfelseif institution2.getApproved() eq 0>
															<span class="text-warning">Not approved</span>
														<cfelseif institution2.getApproved() eq 1>
															Approved
														</cfif>
													</div>
													<div class="text-control clearfix">
														<label>Term Type</label>
														#institution2.getTerm_Type()#
													</div>
													<div class="text-control clearfix">
														<label>Accredited</label>
														<cfif institution2.getAccredited() eq 1>
															Yes
														<cfelseif institution2.getAccredited() eq 0>
															<span class="text-error">No</span>
														<cfelse>
															<span class="text-warning">Unknown</span>
														</cfif>
													</div>
													<div class="text-control clearfix">
														<label>Degree Granting</label>
														<cfif institution2.getDegree_Granting() eq 1>
															Yes<br />
														<cfelseif institution2.getDegree_Granting() eq 0>
															<span class="text-error">No</span><br />
														<cfelse>
															<span class="text-warning">Unknown</span><br />
														</cfif>
													</div>
												</div>
												<div class="span6">
													<div class="text-control clearfix">
														<label>Financial Aid Contact</label>
														<cfif Len(Trim(institution2.getFAO_First_Name())) gt 0 or Len(Trim(institution2.getFAO_Last_Name())) gt 0>
															#institution2.getFAO_First_Name()# #institution2.getFAO_Last_Name()#<br />
														</cfif>
														<cfif Len(Trim(institution2.getFAO_Address1())) gt 0>
															#institution2.getFAO_Address1()#<br />
														</cfif>
														<cfif Len(Trim(institution2.getFAO_Address2())) gt 0>
															#institution2.getFAO_Address2()#<br />
														</cfif>
														<cfif Len(Trim(institution2.getFAO_City())) gt 0>
															#institution2.getFAO_City()#, #institution2.getFAO_State()# #base.FormatZipCode(institution2.getFAO_Zip_Code())#<br />
														</cfif>
														<cfif Len(Trim(institution2.getFAO_Phone())) gt 0>
															#base.FormatPhone(institution2.getFAO_Phone())#<br />
														</cfif>
														<cfif Len(Trim(institution2.getFAO_Email())) gt 0>
															<a href="mailto:#LCase(institution2.getFAO_Email())#">#LCase(institution2.getFAO_Email())#</a><br />
														</cfif>
													</div>
												</div>
											</div>
										<cfelse>
											None
										</cfif>
									</div>
									<!--- <h5>Secondary College/University</h5>
									<div class="well">
										<cfif institution2.getInstitution_ID() gt 0>
										<div class="text-control clearfix">
											<cfif institution2.getDeleted() eq 1>
												<p class="text-error">This institution has been deleted</p>
											<cfelseif institution2.getDisqualified() eq 1>
												<p class="text-error">This institution has been disqualified</p>
											<cfelseif institution2.getApproved() eq 0>
												<p class="text-warning">This institution has not been approved</p>
											</cfif>
											<label>Institution Financial Aid Contact</label>
											#institution2.getInstitution()#<br />
											<cfif Len(Trim(institution2.getFAO_First_Name())) gt 0 or Len(Trim(institution2.getFAO_Last_Name())) gt 0>
												#institution2.getFAO_First_Name()# #institution2.getFAO_Last_Name()#<br />
											</cfif>
											<cfif Len(Trim(institution2.getFAO_Address1())) gt 0>
												#institution2.getFAO_Address1()#<br />
											</cfif>
											<cfif Len(Trim(institution2.getFAO_Address2())) gt 0>
												#institution2.getFAO_Address2()#<br />
											</cfif>
											<cfif Len(Trim(institution2.getFAO_City())) gt 0>
												#institution2.getFAO_City()#, #institution2.getFAO_State()# #base.FormatZipCode(institution2.getFAO_Zip_Code())#<br />
											</cfif>
											<cfif Len(Trim(institution2.getFAO_Phone())) gt 0>
												#base.FormatPhone(institution2.getFAO_Phone())#<br />
											</cfif>
											<cfif Len(Trim(institution2.getFAO_Email())) gt 0>
												<a href="mailto:#LCase(institution2.getFAO_Email())#">#LCase(institution2.getFAO_Email())#</a><br />
											</cfif>
										</div>
										<div class="text-control clearfix">
											<label>Term Type</label>
											#institution2.getTerm_Type()#
										</div>
										<div class="text-control clearfix">
											<label>Accredited</label>
											<cfif institution2.getAccredited() eq 1>
												Yes
											<cfelseif institution2.getAccredited() eq 0>
												<span class="text-error">No</span>
											<cfelse>
												<span class="text-warning">Unknown</span>
											</cfif>
										</div>
										<div class="text-control clearfix">
											<label>Degree Granting</label>
											<cfif institution2.getDegree_Granting() eq 1>
												Yes<br />
											<cfelseif institution2.getDegree_Granting() eq 0>
												<span class="text-error">No</span><br />
											<cfelse>
												<span class="text-warning">Unknown</span><br />
											</cfif>
										</div>
									<cfelse>
										None
									</cfif>
									</div> --->
								</div>
							</div>
						</div>
						<cfif IsUserInRole("Super User") or IsUserInRole("Regional Admin")>
							<div class="tab-pane" id="banking">
								<h4>Banking</h4>
								<div class="row-fluid">
									<div class="span4">
										<div class="text-control clearfix">
											<label>Payment Method</label>
											<cfif Len(Trim(scholarship.getPayment_Method())) gt 0>
												#scholarship.getPayment_Method()#
											<cfelse>
												Not selected
											</cfif>
										</div>
										<cfif (IsUserInRole("Super User") or GetAuthUser() eq 620) AND scholarship.getPayment_Method() eq "eft">
											<div class="text-control clearfix">
												<label>Routing Number</label>
												<cfif Len(Trim(scholarship.getRouting_Number())) gt 0>
													#scholarship.getRouting_Number()#
												<cfelse>
													Not provided
												</cfif>
											</div>
											<div class="text-control clearfix">
												<label>Account Number</label>
												<cfif Len(Trim(scholarship.getRouting_Number())) gt 0>
													#scholarship.getAccount_Number()#
												<cfelse>
													Not provided
												</cfif>
											</div>
										</cfif>
									</div>
									<div class="span4"></div>
									<div class="span4"></div>
								</div>
							</div>
							<div class="tab-pane" id="payments">
								<h4>Payments</h4>
								<cfif IsQuery(qPaymentSchedules)>
									<table class="table table-striped table-bordered">
										<thead>
											<tr>
												<cfif IsUserInRole("Super User") or GetAuthUser() eq 620>
													<th>Payment ID</th>
												</cfif>
												<th>Payment Number</th>
												<th>Term</th>
												<th>Verification Type</th>
												<!--- <th>Deadline</th> --->
												<th>Amount</th>
												<th>Status</th>
											</tr>
										</thead>
										<tbody>
											<cfset paymentIDs = "" />
											<cfset createLink = false />
											<cfloop query="qPaymentSchedules">
												<cfif IsUserInRole("Super User") or GetAuthUser() eq 620>
													<cfif IsQuery(qPayments)>
														<cfquery name="qPayment" dbtype="query">
															select *
															from qPayments
															where Payment_Schedule_ID = #Payment_Schedule_ID#
														</cfquery>
														<cfif qPayment.RecordCount neq 0>
															<cfset paymentIDs = ListAppend(paymentIDs, ValueList(qPayment.Payment_ID)) />
														</cfif>
													<cfelse>
														<cfset qPayment = "" />
													</cfif>
												</cfif>
												<!--- <cfif IsQuery(qPayment) and qPayment.RecordCount gt 1>
													<tr>
														<td colspan="7">The next record has more than one payment</td>
													</tr>
												</cfif> --->
												<tr>
													<cfif IsUserInRole("Super User") or GetAuthUser() eq 620>
														<td>
															#qPayment.Payment_ID#
															<!--- <cfif IsQuery(qPayment) and IsNumeric(qPayment.Payment_ID)>
																<a href="?view=payment&Payment_ID=#qPayment.Payment_ID#&returnView=#view#&passback=Scholarship_ID,#scholarship.getScholarship_ID()#">#qPayment.Payment_ID#</a>
															<cfelseif NOT createLink>
																<cfset createLink = true />
																<a href="?view=editPayment&Payment_ID=0&Scholarship_ID=#scholarship.getScholarship_ID()#&Payment_Schedule_ID=#Payment_Schedule_ID#&returnView=#view#&passback=Scholarship_ID,#scholarship.getScholarship_ID()#">Create</a>
															</cfif> --->
														</td>
													</cfif>
													<td>#CurrentRow#</td>
													<td>#Term#</td>
													<td>#Verification_Type#</td>
													<!--- <td>#DateFormat(Verification_Soft_Deadline, "m/d/yyyy")#</td> --->
													<td>#DollarFormat(Payment_Amount)#</td>
													<td>#base.getPaymentStatus(Scholarship_ID = scholarship.getScholarship_ID(), Payment_Schedule_ID = Payment_Schedule_ID)#</td>
												</tr>
											</cfloop>
										</tbody>
									</table>
								<cfelse>
									Payment schedule can not be determined<cfif NOT IsDate(scholarship.getClaim_Date())> because the scholarship has not been claimed<cfelseif scholarship.getInstitution1_ID() eq 0> because a college/university has not been selected<cfelseif Len(Trim(qScholarship.Term_Type)) eq 0> because the selected college/university does not have a term type specified</cfif>
								</cfif>				
								<!--- payments have been made outside of the current payment schedule --->
								<!--- <cfif (IsUserInRole("Super User") or GetAuthUser() eq 620) AND qPayments.RecordCount neq ListLen(paymentIDs)>
									<cfquery name="qOffSchedulePayments" dbtype="query">
										select * from qPayments where Payment_ID NOT IN (#paymentIDs#)
									</cfquery>
									<div class="row-fluid">
										<div class="span12">
											<h3>Off Schedule Payments</h3>
											<cfdump var="#qOffSchedulePayments#">
										</div>
									</div>
								</cfif> --->
							</div>
							<!--- <div class="tab-pane" id="gds">
								<h4>GDS Data</h4>
								<div class="row-fluid">
									<div class="span4">
										<div class="text-control clearfix">
											<label>Contact Info</label>
											<cfif IsNumeric(qScholarship.GDS_ID) and qScholarship.GDS_ID gt 0>
												#base.TitleCase(qScholarship.GDS_First_Name)# #base.TitleCase(qScholarship.GDS_Last_Name)#<br />
												#base.TitleCase(qScholarship.GDS_Address)#<br />
												#base.TitleCase(qScholarship.GDS_City)#, #qScholarship.GDS_State# #qScholarship.GDS_Zip_Code#<br />
												#base.FormatPhone(qScholarship.GDS_Phone)#<br />
												<a href="mailto:#LCase(qScholarship.GDS_Email)#">#LCase(qScholarship.GDS_Email)#</a>
											<cfelse>
												No data
											</cfif>
										</div>
									</div>
									<div class="span4">
										<div class="text-control">
											<label>High School</label>
											#qScholarship.GDS_High_School#<br />
											<cfif Len(Trim(qScholarship.GDS_High_School_Address1)) gt 0>
												#qScholarship.GDS_High_School_Address1#<br />
											</cfif>
											<cfif Len(Trim(qScholarship.GDS_High_School_Address2)) gt 0>
												#qScholarship.GDS_High_School_Address2#<br />
											</cfif>
											#qScholarship.GDS_High_School_City#, #qScholarship.GDS_High_School_State# #qScholarship.GDS_High_School_Zip_Code#<br />
											<cfif Len(Trim(qScholarship.GDS_High_School_Type)) gt 0>
												#base.FormatPhone(qScholarship.GDS_High_School_Type)#
											</cfif>
										</div>
									</div>
									<div class="span4">
										<div class="text-control clearfix">
											<label>Social Security Number</label>
											<cfif Len(Trim(qScholarship.GDS_SSN)) gt 0>
												<cfif IsValid("social_security_number", base.formatSSN(qScholarship.GDS_SSN))>
													<cfif IsUserInRole("Super User")>
														#base.formatSSN(qScholarship.GDS_SSN)#
													<cfelse>
														***-**-#Right(base.formatSSN(qScholarship.GDS_SSN), 4)#
													</cfif>
												<cfelse>
													#qScholarship.GDS_SSN# (Dream Act ID)
												</cfif>
											<cfelse>
												No data
											</cfif>	
										</div>
										<div class="text-control clearfix">
											<label>Date of Birth</label>
											<cfif IsDate(qScholarship.GDS_DOB)>
												#DateFormat(qScholarship.GDS_DOB, "m/d/yyyy")#
											<cfelse>
												No data
											</cfif>
										</div>
									</div>
								</div>
							</div> --->
							<div class="tab-pane" id="student">
								<h4>Exit Survey Data</h4>
								<div class="row-fluid">
									<div class="span4">
										<div class="text-control clearfix">
											<label>Contact Info</label>
											<cfif IsNumeric(qScholarship.Student_ID) and qScholarship.Student_ID gt 0>
												#qScholarship.Student_First_Name# #qScholarship.Student_Last_Name#<br />
												#qScholarship.Student_Address#<br />
												#qScholarship.Student_City#, CA #qScholarship.Student_Zip_Code#<br />
												#qScholarship.Student_Phone1#<br />
												<cfif Len(Trim(qScholarship.Student_Phone2)) gt 0>#qScholarship.Student_Phone2#<br /></cfif>
												<a href="mailto:#qScholarship.Student_Email#">#qScholarship.Student_Email#</a>
											<cfelse>
												No data
											</cfif>
										</div>
									</div>
									<div class="span4">
										<div class="text-control clearfix">
											<label>High School</label>
											#base.TitleCase(qScholarship.Q8)#
										</div>
									</div>
									<div class="span4">
										<div class="text-control clearfix">
											<label>Social Security Number</label>
											<cfif qScholarship.Student_SSN_Code eq 1>
											***-**-#qScholarship.Student_SSN#
											<cfelseif qScholarship.Student_SSN_Code eq 2>
												I do not have an SSN
											<cfelseif qScholarship.Student_SSN_Code eq 3>
												I don't remember my SSN
											<cfelse>
												No data
											</cfif>
										</div>
										<div class="text-control clearfix">
											<label>Date of Birth</label>
											<cfif IsDate(qScholarship.Student_DOB)>
												#DateFormat(qScholarship.Student_DOB, "m/d/yyyy")#
											<cfelse>
												No data
											</cfif>
										</div>
										<div class="text-control clearfix">
											<label>Workshop</label>
											#qScholarship.Site#<br />
											#DateFormat(qScholarship.Workshop_Date, "m/d/yyyy")# #TimeFormat(qScholarship.Start_Time, "h:mmtt")#&nbsp;-&nbsp;#TimeFormat(qScholarship.End_Time, "h:mmtt")#
										</div>	
										<div class="text-control clearfix">
											<label>Organization</label>
											#qScholarship.Organization#<br />
											#qScholarship.Organization_Address#<br />
											#qScholarship.Organization_City#, CA #qScholarship.Organization_Zip_Code#
										</div>
									</div>
								</div>							
							</div>
						</cfif>
					</div>
				</div>
			</div>

			<!--- <div class="row-fluid">				
				<div class="span4">
					<div class="text-control clearfix">
						<label>Date of Birth</label>
						<cfif source eq "scholarship">
							#DateFormat(scholarship.getDOB(), "m/d/yyyy")#
						<cfelseif source eq "GDS">
							#DateFormat(qScholarship.GDS_DOB, "m/d/yyyy")#
						<cfelseif source eq "student">
							#DateFormat(qScholarship.Student_DOB, "m/d/yyyy")#
						<cfelse>
							No data
						</cfif>
					</div>
					<div class="text-control clearfix">
						<label>Social Security Number</label>
						<cfif source eq "scholarship">
							<cfif IsValid("social_security_number", base.formatSSN(scholarship.getSSN()))>
								<div id="concealedGDSSSNContainer">
									***-**-#Right(base.formatSSN(scholarship.getSSN()), 4)#<cfif IsUserInRole("Super User")> <a href="##" onclick="toggle('revealedGDSSSNContainer', 'concealedGDSSSNContainer'); return false;" class="btn btn-mini btn-primary">Show full SSN</a></cfif>
								</div>
								<div id="revealedGDSSSNContainer" style="display: none;">
									#base.formatSSN(scholarship.getSSN())#<cfif IsUserInRole("Super User")> <a href="##" onclick="toggle('concealedGDSSSNContainer', 'revealedGDSSSNContainer'); return false;" class="btn btn-mini btn-primary">Hide full SSN</a></cfif>
								</div>
							<cfelse>
								<cfif Len(Trim(qScholarship.GDS_SSN)) gt 0>
									<cfif IsValid("social_security_number", base.formatSSN(qScholarship.GDS_SSN))>
										<div id="concealedGDSSSNContainer">
											***-**-#Right(base.formatSSN(qScholarship.GDS_SSN), 4)#<cfif IsUserInRole("Super User")> <a href="##" onclick="toggle('revealedGDSSSNContainer', 'concealedGDSSSNContainer'); return false;" class="btn btn-mini btn-primary">Show full SSN</a></cfif>
										</div>
										<div id="revealedGDSSSNContainer" style="display: none;">
											#base.formatSSN(qScholarship.GDS_SSN)#<cfif IsUserInRole("Super User")> <a href="##" onclick="toggle('concealedGDSSSNContainer', 'revealedGDSSSNContainer'); return false;" class="btn btn-mini btn-primary">Hide full SSN</a></cfif>
										</div>
									<cfelse>
										#qScholarship.GDS_SSN# (Dream Act ID)
									</cfif>
								</cfif>
							</cfif>
						<cfelseif source eq "GDS">
							<cfif Len(Trim(qScholarship.GDS_SSN)) gt 0>
								<cfif IsValid("social_security_number", base.formatSSN(qScholarship.GDS_SSN))>
									<div id="concealedGDSSSNContainer">
										***-**-#Right(base.formatSSN(qScholarship.GDS_SSN), 4)#<cfif IsUserInRole("Super User")> <a href="##" onclick="toggle('revealedGDSSSNContainer', 'concealedGDSSSNContainer'); return false;" class="btn btn-mini btn-primary">Show full SSN</a></cfif>
									</div>
									<div id="revealedGDSSSNContainer" style="display: none;">
										#base.formatSSN(qScholarship.GDS_SSN)#<cfif IsUserInRole("Super User")> <a href="##" onclick="toggle('concealedGDSSSNContainer', 'revealedGDSSSNContainer'); return false;" class="btn btn-mini btn-primary">Hide full SSN</a></cfif>
									</div>
								<cfelse>
									#qScholarship.GDS_SSN# (Dream Act ID)
								</cfif>
							<cfelse>
								Not available
							</cfif>								
						<cfelseif source eq "student">
							<cfif qScholarship.Student_SSN_Code eq 1>
							***-**-#qScholarship.Student_SSN#
							<cfelseif qScholarship.Student_SSN_Code eq 2>
								I do not have an SSN
							<cfelseif qScholarship.Student_SSN_Code eq 3>
								I don't remember my SSN
							</cfif>
						<cfelse>
							No data
						</cfif>
					</div>
				</div>
				<div class="span4">
					<div class="text-control clearfix">
						<label>High School</label>
						<cfif source eq "scholarship">
							<cfif IsNumeric(scholarship.getHigh_School_ID()) and scholarship.getHigh_School_ID() gt 0>
								#qScholarship.Scholarship_High_School#<br />
								<cfif Len(Trim(qScholarship.Scholarship_High_School_Address1)) gt 0>
									#qScholarship.Scholarship_High_School_Address1#<br />
								</cfif>
								<cfif Len(Trim(qScholarship.Scholarship_High_School_Address2)) gt 0>
									#qScholarship.Scholarship_High_School_Address2#<br />
								</cfif>
								#qScholarship.Scholarship_High_School_City#, #qScholarship.Scholarship_High_School_State# #qScholarship.Scholarship_High_School_Zip_Code#<br />
								<cfif Len(Trim(qScholarship.Scholarship_High_School_Type)) gt 0>
									#base.FormatPhone(qScholarship.Scholarship_High_School_Type)#
								</cfif>
							<cfelse>
								#base.TitleCase(scholarship.getHigh_School())#
							</cfif>
						<cfelseif source eq "GDS">
							#qScholarship.GDS_High_School# (#qScholarship.GDS_High_School_ID#)<br />
							<cfif Len(Trim(qScholarship.GDS_High_School_Address1)) gt 0>
								#qScholarship.GDS_High_School_Address1#<br />
							</cfif>
							<cfif Len(Trim(qScholarship.GDS_High_School_Address2)) gt 0>
								#qScholarship.GDS_High_School_Address2#<br />
							</cfif>
							#qScholarship.GDS_High_School_City#, #qScholarship.GDS_High_School_State# #qScholarship.GDS_High_School_Zip_Code#<br />
							<cfif Len(Trim(qScholarship.GDS_High_School_Type)) gt 0>
								#base.FormatPhone(qScholarship.GDS_High_School_Type)#
							</cfif>
						<cfelseif source eq "student">
							#base.TitleCase(qScholarship.Q8)#
						<cfelse>
							No data
						</cfif>
					</div>
					<div class="text-control clearfix">
						<label>HS Graduation Date</label>
						<cfif IsNumeric(scholarship.getGraduation_Month()) and IsNumeric(scholarship.getGraduation_Year())>
							#MonthAsString(scholarship.getGraduation_Month())# #scholarship.getGraduation_Year()#
						<cfelse>
							No data
						</cfif>
					</div>
					<div class="text-control clearfix">
						<label>College/University</label>
						<cfif source eq "scholarship">
							#qScholarship.Institution# (#qScholarship.Institution_Code#)<br />
							<cfif qScholarship.Institution_Deleted eq 1>
								This institution has been deleted<br />
							<cfelseif qScholarship.Institution_Disqualified eq 1>
								This institution has been disqualified<br />
							<cfelseif qScholarship.Institution_Approved eq 0>
								This institution has not been approved<br />
							</cfif>
							<cfif qScholarship.Degree_Granting eq 1>
								Degree granting institution<br />
							<cfelseif qScholarship.Degree_Granting eq 0>
								Not degree granting<br />
							<cfelse>
								Degree granting status unknown<br />
							</cfif>
							<cfif qScholarship.Accredited eq 1>
								Accredited
							<cfelseif qScholarship.Accredited eq 0>
								Not accredited
							<cfelse>
								Accredited status unknown
							</cfif>
						<cfelse>
							No data
						</cfif>
					</div>
					<cfif source eq "scholarship" and qScholarship.Institution_Deleted eq 0>
						<div class="text-control clearfix">
							<label>College/University Financial Aid Contact</label>
							<cfif Len(Trim(qScholarship.Institution_FAO_First_Name)) gt 0 or Len(Trim(qScholarship.Institution_FAO_Last_Name)) gt 0>
								#qScholarship.Institution_FAO_First_Name# #qScholarship.Institution_FAO_Last_Name#<br />
							</cfif>
							<cfif Len(Trim(qScholarship.Institution_FAO_Address1)) gt 0>
								#qScholarship.Institution_FAO_Address1#<br />
							</cfif>
							<cfif Len(Trim(qScholarship.Institution_FAO_Address2)) gt 0>
								#qScholarship.Institution_FAO_Address2#<br />
							</cfif>
							<cfif Len(Trim(qScholarship.Institution_FAO_City)) gt 0>
								#qScholarship.Institution_FAO_City#, #qScholarship.Institution_FAO_State# #base.FormatZipCode(qScholarship.Institution_FAO_Zip_Code)#<br />
							</cfif>
							<cfif Len(Trim(qScholarship.Institution_FAO_Phone)) gt 0>
								#base.FormatPhone(qScholarship.Institution_FAO_Phone)#<br />
							</cfif>
							<cfif Len(Trim(qScholarship.Institution_FAO_Email)) gt 0>
								<a href="mailto:#LCase(qScholarship.Institution_FAO_Email)#">#LCase(qScholarship.Institution_FAO_Email)#</a><br />
							</cfif>
						</div>
					</cfif>
					<div class="text-control clearfix">
						<label>Enrollment Date</label>
						#scholarship.getEnrollment_Date()#
					</div>
					<div class="text-control clearfix">
						<label>Degree Level</label>
						#scholarship.getDegree_Level()#
					</div>
					<div class="text-control clearfix">
						<label>Attendance Level</label>
						#scholarship.getAttendance_Level()#
					</div>
				</div>
				<div class="span4">
					<div class="text-control clearfix">
						<label>Volunteer</label>
						#YesNoFormat(scholarship.getVolunteer())#
					</div>
					<div class="text-control clearfix">
						<label>Authorized/Consent Given</label>
						#YesNoFormat(scholarship.getAuthorized())#
					</div>
					<cfif scholarship.getScholarship_Type() neq "ccfc" and scholarship.getCohort() eq 5>
						<div class="text-control clearfix">
							<label>Authorized By</label>
							<cfif Len(Trim(scholarship.getAuthorized_Signature())) gt 0>
								#scholarship.getAuthorized_Signature()# (#scholarship.getAuthorized_By()#)
							<cfelse>
								Not completed
							</cfif>
						</div>
						<div class="text-control clearfix">
							<label>Orientation Completed</label>
							#YesNoFormat(scholarship.getOrientation_Completed())#
						</div>
					</cfif>
					<div class="text-control clearfix">
						<label>Gender</label>
						<cfif scholarship.getGender() eq "f">
							Female
						<cfelseif scholarship.getGender eq "m">
							Male
						<cfelse>
							Did not answer
						</cfif>
					</div>
					<div class="text-control clearfix">
						<label>Race/Ethnicity</label>
						<cfif Len(Trim(scholarship.getRace_Ethnicity())) gt 0>
							#scholarship.getRace_Ethnicity()#
						<cfelse>
							Did not answer
						</cfif>
					</div>
					<div class="text-control clearfix">
						<label>Payment Method</label>
						<cfif Len(Trim(scholarship.getPayment_Method())) gt 0>
							#scholarship.getPayment_Method()#
						<cfelse>
							Not selected
						</cfif>
					</div>
					<cfif (IsUserInRole("Super User") or GetAuthUser() eq 620) AND scholarship.getPayment_Method() eq "eft">
						<div class="text-control clearfix">
							<label>Routing Number</label>
							<cfif Len(Trim(scholarship.getRouting_Number())) gt 0>
								#scholarship.getRouting_Number()#
							<cfelse>
								Not provided
							</cfif>
						</div>
						<div class="text-control clearfix">
							<label>Account Number</label>
							<cfif Len(Trim(scholarship.getRouting_Number())) gt 0>
								#scholarship.getAccount_Number()#
							<cfelse>
								Not provided
							</cfif>
						</div>
					</cfif>
					<div class="text-control clearfix">
						<label>Organization</label>
						#qScholarship.Organization#<br />
						#qScholarship.Organization_Address#<br />
						#qScholarship.Organization_City#, CA #qScholarship.Organization_Zip_Code#
					</div>
					<div class="text-control clearfix">
						<label>Workshop</label>
						#qScholarship.Site#<br />
						#DateFormat(qScholarship.Workshop_Date, "m/d/yyyy")# #TimeFormat(qScholarship.Start_Time, "h:mmtt")#&nbsp;-&nbsp;#TimeFormat(qScholarship.End_Time, "h:mmtt")#
					</div>
				</div>
			</div> --->
			
			
			
			<!--- <div class="row-fluid">
				<div class="span12">
				
					<h4>Scheduled Payments</h4>
					
			<!--- Buttons --->
			<div class="row-fluid">
				<div class="span12">
					<span class="pull-right"> 
						<a href="?view=#returnView#" class="btn btn-success">Close</a>
					</span>
				</div>
			</div> --->
			<!--- <div class="row-fluid">
				<div class="span12">
					<span class="pull-right" style="margin-top: 8px;">
						<a href="?view=#returnView#" class="btn btn-success">Close</a>
					</span>
				</div>
			</div> --->
		</cfoutput>
	</div>

<cfelse>

	<div class="alert alert-info notFound">Scholarship not found</div>

</cfif>